<?php
require_once(dirname(__FILE__)."/config.php");
$uid=empty($uid)? "" : RemoveXSS($uid); 

if(empty($action))
{
	$action = '';
}
if(empty($aid))
{
	$aid = '';
}
$menutype = 'mydede';

//会员后台
$iscontrol = 'yes';
	if(!$cfg_ml->IsLogin())
	{
		include_once(dirname(__FILE__)."/templets/index-notlogin.htm");
	}
	else
	{
		
		require_once(dirname(__FILE__)."../../include/channelunit.func.php");
		
		/* 最新订单10条线路 */
		$archives = array();
		$sql = "select * from `#@__order` where mid={$cfg_ml->M_ID}  and fx='0'  order by aid desc limit 5";
		$dsql->SetQuery($sql);
		$dsql->Execute();
		while ($row = $dsql->GetArray())
		{
		
			$archives[] = $row;
		}
		
		
			/* 最新订单10条酒店 */
		$archivesjd = array();
		$sql = "select * from `#@__order` where mid={$cfg_ml->M_ID}  and fx<>'0' order by aid desc limit 5";
		$dsql->SetQuery($sql);
		$dsql->Execute();
		while ($rowjd = $dsql->GetArray())
		{
		
			$archivesjd[] = $rowjd;
		}
	
	
	     /* 最新抵用券 */
		$dyqs= hqdyq($cfg_ml->M_ID);

		
		
	
	   $sql = "select * from #@__member where mid='".$cfg_ml->M_ID."'";
       $dsql->SetQuery($sql);
       $dsql->Execute();
        $row = $dsql->GetArray();	
		$dpl = new DedeTemplate();
		$tpl = dirname(__FILE__)."/templets/index.htm";
		$dpl->LoadTemplate($tpl);
		$dpl->display();
	}




?>